<?php /* Smarty version Smarty-3.1.15, created on 2013-11-19 12:50:16
         compiled from "./templates/THomePage_list.tpl" */ ?>
<?php /*%%SmartyHeaderCode:541444832528b324b11f8b7-25354483%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c8f9901b0577f7b504947dad2b83aa6e4c2e8d22' => 
    array (
      0 => './templates/THomePage_list.tpl',
      1 => 1384861810,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '541444832528b324b11f8b7-25354483',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_528b324b153598_51579058',
  'variables' => 
  array (
    'SCRIPT_NAME' => 0,
    'customers' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_528b324b153598_51579058')) {function content_528b324b153598_51579058($_smarty_tpl) {?><div>
	<a href="<?php echo $_smarty_tpl->tpl_vars['SCRIPT_NAME']->value;?>
?action=add">Přidat zákazníka</a>
	<table class="tb">
		<tr>
			<td><strong>ID</strong>&nbsp;<a href="<?php echo $_smarty_tpl->tpl_vars['SCRIPT_NAME']->value;?>
/list/?orderby=id">&uarr;</a>&nbsp;<a href="<?php echo $_smarty_tpl->tpl_vars['SCRIPT_NAME']->value;?>
/list/?orderby=id&amp;order=desc">&darr;</a></td>
			<td><strong>Jméno</strong></td>
			<td><strong>Ulice, ČP</strong></td>
			<td><strong>Čas</strong>&nbsp;<a href="<?php echo $_smarty_tpl->tpl_vars['SCRIPT_NAME']->value;?>
/list/?orderby=cas">&uarr;</a>&nbsp;<a href="<?php echo $_smarty_tpl->tpl_vars['SCRIPT_NAME']->value;?>
/list/?orderby=cas&amp;order=desc">&darr;</a></td>
			<td><strong>Poznámky</strong></td>
			<td><strong>Mapa</strong></td>
			<td><strong>Akce</strong>&nbsp;</td>
		</tr>
		<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['i'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['customers']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
		<tr>
			<td><?php echo $_smarty_tpl->tpl_vars['customers']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['ID'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['customers']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['JMENO'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['customers']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['ULICE'];?>
</td>
			
			<td><?php echo $_smarty_tpl->tpl_vars['customers']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['CAS'];?>
 (<?php echo $_smarty_tpl->tpl_vars['customers']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['ROK'];?>
)</td>
			<td><?php echo $_smarty_tpl->tpl_vars['customers']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['POZNAMKY'];?>
</td>
			<td><a href="http://maps.google.com/maps?q=<?php echo $_smarty_tpl->tpl_vars['customers']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['ULICE'];?>
,+Praha" target="_blank"><img src="http://www.inkosro.cz/images/ikonky/.1/map.gif" /></a></td>
			<td>
				<a href="/www/add/edit/31" title="Editovat">
				<img style="float:left;" src="%3D%3D" />
				</a>
				&nbsp;
				<a href="<?php echo $_smarty_tpl->tpl_vars['SCRIPT_NAME']->value;?>
/del/<?php echo $_smarty_tpl->tpl_vars['customers']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['ID'];?>
" title="Smazat">
				<img style="float:right;" src="%3D%3D" />
				</a>
			</td>
		</tr>
		<?php endfor; endif; ?>
	</table>
</div><?php }} ?>
